package com.zlx.springclouddemo.superstar.controller;

import com.zlx.springclouddemo.superstar.service.SuperstarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/")
public class SuperstarController {

    @Autowired
    SuperstarService superstarService;

    @GetMapping(value = "/createschool")
    public String createSchool(@RequestParam("schoolId")String schoolId){
        return superstarService.createSchool(schoolId);
    }
}
